package com.code.model.vo.user;

import com.code.commons.model.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 交易密码相关的VO
 *
 * @author tangyifei
 * @since 2019年12月25日19:33:27
 */
@ApiModel("交易密码相关的VO")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TranPwdVO implements Model {

    private static final long serialVersionUID = 1517900712444256731L;

    @ApiModelProperty(value = "用户主键", example = "1")
    private String userId;

    @ApiModelProperty(value = "手机号", example = "+86150****0055")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "新的交易密码", example = "******")
    @NotBlank(message = "新的交易密码不能为空")
    private String newTranPwd;

    @ApiModelProperty(value = "验证码", example = "123456")
    @NotBlank(message = "验证码不能为空")
    private String authCode;

    @ApiModelProperty(value = "旧的交易密码", example = "******")
    private String oldTranPwd;

    @ApiModelProperty(value = "登陆密码", example = "******")
    private String pwd;
}
